function proxy
    if test $(count $argv) -lt 1
        echo "Usage: proxy <proxy>"
        return 1
    end
    set -x all_proxy http://127.0.0.1:7890
    set -x http_proxy $all_proxy
    set -x https_proxy $all_proxy
    set -x socks_proxy $all_proxy
    $argv[1] $argv[2..-1] >/dev/stdout
end
